package com.arpa.wms.domain.vo;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 云打印模板 VO
 * @author jinss
 * @date 2020-08-20 11:14:51
 **/
@Data
@ApiModel(value="CloudprintStandardTemplatesVO 对象", description="云打印模板 VO")
public class CloudprintStandardTemplatesVO implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "id")
    private Integer id;

    @ApiModelProperty(value = "承运商编码（物流公司code）")
    private String code;

    @ApiModelProperty(value = "标准模板url")
    private String standardTemplateUrl;

    @ApiModelProperty(value = "标准模板名称")
    private String standardTemplateName;

    @ApiModelProperty(value = "模板类型")
    private String standardWaybillType;

    @ApiModelProperty(value = "类型")
    private String type;

    @ApiModelProperty(value = "备注")
    private String remarks;

    @ApiModelProperty(value = "总数")
    private Long total;

    /**
     * 创建人
     */
    @ApiModelProperty(hidden = true)
    @TableField(value = "created_by")
    private String createdBy;

    /**
     * 创建人名称
     */
    @ApiModelProperty(hidden = true)
    @TableField(value = "created_name")
    private String createdName;
    /**
     * 修改人名称
     */
    @ApiModelProperty(hidden = true)
    @TableField(value = "modified_name")
    private String modifiedName;

    /**
     * 修改人
     */
    @ApiModelProperty(hidden = true)
    @TableField(value = "modified_by")
    private String modifiedBy;
    /**
     * 创建时间
     * 自动填充
     */
    @ApiModelProperty(hidden = true)
    @TableField(value = "gmt_created", fill = FieldFill.INSERT)
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime gmtCreated;

    /**
     * 修改时间
     * 自动填充
     */
    @ApiModelProperty(hidden = true)
    @TableField(value = "gmt_modified", fill = FieldFill.INSERT_UPDATE)
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime gmtModified;
}
